<!DOCTYPE html>
<html lang="en">

<head>
    <meta charset="UTF-8">
    <meta name="viewport" content="width=device-width, initial-scale=1.0">
    <title>3D加载中</title>
    <style>
        * {
            margin: 0px;
            padding: 0px;
        }

        body {
            background-color: gray;
            display: flex;
            justify-content: center;
            align-items: center;
            height: 100vh;
        }

        #container {
            perspective: 300px;
            perspective-origin: 50% 50%;
            transform-style: preserve-3d;
            animation: rotate 3s linear infinite;
           
        }

        #rotate-container {
            width: 300px;
            height: 300px;
            position: relative;
            transform-style: preserve-3d;
            animation: rotateY 2s linear infinite;
            margin: 0px auto;
            border:  1px solid red;
        }

        .box {
            /* color: blue; */
            width: 20px;
            height: 20px;
            position: absolute;
            left: 50%;
            top: 50%;
            margin-top: -10px;
            margin-left: -10px;
            color: blue;
            border: 1px solid white;
            transform: rotateX(30deg);
        }

        .box:nth-child(1) {
            transform: translateZ(-100px);
            /* 向 z 轴负方向移动 */
        }

        .box:nth-child(2) {
            transform: rotateY(30deg) translateZ(-100px);
        }

        .box:nth-child(3) {
            transform: rotateY(60deg) translateZ(-100px);
        }

        .box:nth-child(4) {
            transform: rotateY(90deg) translateZ(-100px);
        }

        .box:nth-child(5) {
            transform: rotateY(120deg) translateZ(-100px);
        }

        .box:nth-child(6) {
            transform: rotateY(150deg) translateZ(-100px);
        }

        .box:nth-child(7) {
            transform: rotateY(180deg) translateZ(-100px);
        }

        .box:nth-child(8) {
            transform: rotateY(210deg) translateZ(-100px);
        }

        .box:nth-child(9) {
            transform: rotateY(240deg) translateZ(-100px);
        }

        .box:nth-child(10) {
            transform: rotateY(270deg) translateZ(-100px);
        }

        .box:nth-child(11) {
            transform: rotateY(300deg) translateZ(-100px);
        }

        .box:nth-child(12) {
            transform: rotateY(330deg) translateZ(-100px);
        }

        @keyframes rotate {
            from {
                transform: rotateY(0deg) rotateX(30deg);
            }

            to {
                transform: rotateY(360deg) rotateX(30deg);
            }
        }

        @keyframes rotateY {
            from {
                transform: rotateY(0deg);
            }

            to {
                transform: rotateY(1trun);
            }
        }
    </style>
</head>

<body>
    <div id="container">
        <div id="rotate-container">
            <div class="box">L</div>
            <div class="box">o</div>
            <div class="box">a</div>
            <div class="box">d</div>
            <div class="box">i</div>
            <div class="box">n</div>
            <div class="box">g</div>
            <div class="box">.</div>
            <div class="box">.</div>
            <div class="box">.</div>
            <div class="box">.</div>
            <div class="box">.</div>
        </div>
    </div>
</body>

</html>